package com.example.demo.mapper;


import java.util.List;

import com.example.demo.entity.Role;
import com.example.demo.entity.RoleAndPermission;

/**
 * 角色映射类
 * @author Henry.Y
 * 2019年5月17日
 */
public interface RoleMapper {

	public int createRole(String sqlId,Role role);
	
	public int deleteRole(String sqlId,String id);
	
	public int correlatePermission(String sqlId,List<RoleAndPermission> roleAndPermissionList);
	
	public int uncorrelatePermission(String sqlId,RoleAndPermission roleAndPermission);
	
	public int deleteRoleTable(String sqlId);
}
